From ced901634feafad060e41c93116b0902b1319fc4 Mon Sep 17 00:00:00 2001 From: rahul21 Date: Fri, 29 Mar 2013 16:08:32 +0530 Subject: [PATCH] Protected function UploadBase->validateName changed to public *Any class that is not part of the UploadBase class (so it can't call protected functions or members on an UploadBase object). If you, for example,build an extension that uses an UploadBase instance, there is no way to get the title validation error. Bug: 38221 Change-Id: Ie6c3f95a09ef84777313c3ec2edd31c50c397e28 --- includes/upload/UploadBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 3a37f11c92..e8151b2f41 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -330,7 +330,7 @@ abstract class UploadBase { * @return mixed true if valid, otherwise and array with 'status' * and other keys **/ - protected function validateName() { + public function validateName() { $nt = $this->getTitle(); if( is_null( $nt ) ) { $result = array( 'status' => $this->mTitleError ); -- 2.20.1